package com.xinou.daily_report.PO;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinou.common.base.database.Page;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @创建人 wdl
 * @创建时间 2021/6/11
 * @描述
 */
@Data
public class WeekPlanPO extends Page {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "本周的重点工作")
    private String keyWork;

    @ApiModelProperty(value = "预测结果")
    private String expectedResult;

    @ApiModelProperty(value = "需要的资源支持")
    private String requiredResource;

    @ApiModelProperty(value = "周的id")
    private Long weekId;

    @ApiModelProperty(value = "用户的id")
    private Long userId;

    @ApiModelProperty(value = "部门的id")
    private Long deptId;

    @ApiModelProperty(value = "阶段性结果")
    private String stageResult;


    @ApiModelProperty(value = "任务难度")
    private Integer taskDifficulty;

//    @ApiModelProperty(value = "插入时间 yyyy-MM-dd HH:mm:ss", example = "2020-11-28 00:12:23", required = true)
//    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
//    @TableField(value = "insert_time", fill = FieldFill.INSERT_UPDATE)
//    private LocalDateTime insertTime;


//    private String weekDayString;

    private Integer weekDay;

    @ApiModelProperty(value = "1表示今日，2表示历史，默认表示全部")
    private Integer isNow;

    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime weekPlanTimeStart;

    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime weekPlanTimeEnd;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @ApiModelProperty(value = "筛选时间")
    private LocalDateTime selectTime;

}
